<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hashcat-3.201: H:/TDDownload/Hashcat v3.20/hashcat-3.201/src/locking.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">hashcat-3.201
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_06fe396e3e859736df6d43ad26baa72e.html">hashcat-3.201</a></li><li class="navelem"><a class="el" href="dir_9ce3dfc5d638c7f8b2c4ec0f6627771b.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">locking.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;common.h&quot;</code><br />
<code>#include &quot;types.h&quot;</code><br />
<code>#include &quot;event.h&quot;</code><br />
<code>#include &quot;locking.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for locking.c:</div>
<div class="dyncontent">
<div class="center"><img src="locking_8c__incl.gif" border="0" usemap="#_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2locking_8c" alt=""/></div>
<map name="_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2locking_8c" id="_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2locking_8c">
<area shape="rect"  title=" " alt="" coords="108,5,271,61"/>
<area shape="rect"  title=" " alt="" coords="5,109,88,136"/>
<area shape="rect"  title=" " alt="" coords="113,109,178,136"/>
<area shape="rect"  title=" " alt="" coords="202,109,265,136"/>
<area shape="rect"  title=" " alt="" coords="289,109,364,136"/>
</map>
</div>
</div>
<p><a href="locking_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a29a00825c15274df14db9bf40c016d65"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="locking_8c.html#a29a00825c15274df14db9bf40c016d65">lock_file</a> (MAYBE_UNUSED FILE *fp)</td></tr>
<tr class="separator:a29a00825c15274df14db9bf40c016d65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a028cad722524f6f02863b3c309a28bd4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="locking_8c.html#a028cad722524f6f02863b3c309a28bd4">unlock_file</a> (MAYBE_UNUSED FILE *fp)</td></tr>
<tr class="separator:a028cad722524f6f02863b3c309a28bd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a29a00825c15274df14db9bf40c016d65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29a00825c15274df14db9bf40c016d65">&#9670;&nbsp;</a></span>lock_file()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int lock_file </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED FILE *&#160;</td>
          <td class="paramname"><em>fp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Author......: See docs/credits.txt License.....: MIT </p>

<p class="definition">Definition at line <a class="el" href="locking_8c_source.html#l00043">43</a> of file <a class="el" href="locking_8c_source.html">locking.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  <span class="comment">// we should put windows specific code here</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="debugfile_8c_source.html#l00082">debugfile_init()</a>, <a class="el" href="dictstat_8c_source.html#l00114">dictstat_write()</a>, <a class="el" href="logfile_8c_source.html#l00046">logfile_append()</a>, <a class="el" href="loopback_8c_source.html#l00149">loopback_write_append()</a>, <a class="el" href="outfile_8c_source.html#l00303">outfile_write_open()</a>, <a class="el" href="potfile_8c_source.html#l00201">potfile_write_append()</a>, <a class="el" href="stdout_8c_source.html#l00051">process_stdout()</a>, <a class="el" href="hashes_8c_source.html#l00121">save_hash()</a>, and <a class="el" href="opencl_8c_source.html#l00337">write_kernel_binary()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="locking_8c_a29a00825c15274df14db9bf40c016d65_icgraph.gif" border="0" usemap="#locking_8c_a29a00825c15274df14db9bf40c016d65_icgraph" alt=""/></div>
<map name="locking_8c_a29a00825c15274df14db9bf40c016d65_icgraph" id="locking_8c_a29a00825c15274df14db9bf40c016d65_icgraph">
<area shape="rect"  title=" " alt="" coords="1836,215,1905,241"/>
<area shape="rect"  href="debugfile_8c.html#a60c0a245b9b00da84b0121248645560b" title=" " alt="" coords="1479,5,1576,32"/>
<area shape="rect"  href="dictstat_8c.html#a209f066c1a08c9a01d809f89b176627c" title=" " alt="" coords="633,56,732,83"/>
<area shape="rect"  href="logfile_8c.html#a3a860518f14628333d31b97332227443" title=" " alt="" coords="1657,417,1761,444"/>
<area shape="rect"  href="loopback_8c.html#a8f463403cbb10298e9a4687df11958f5" title=" " alt="" coords="1631,164,1788,191"/>
<area shape="rect"  href="outfile_8c.html#a2085d3798d2f36b34c3d3a87604364dc" title=" " alt="" coords="1647,113,1772,140"/>
<area shape="rect"  href="potfile_8c.html#a769fba1d52f71c0c9a1ba04a46429ac0" title=" " alt="" coords="1640,215,1779,241"/>
<area shape="rect"  href="stdout_8c.html#af0583ba5d034d87b6b336f65a220db35" title=" " alt="" coords="1472,265,1583,292"/>
<area shape="rect"  href="hashes_8c.html#a5c95202be7d166a6346b342145ed9b1c" title=" " alt="" coords="1486,316,1569,343"/>
<area shape="rect"  href="opencl_8c.html#a978d49495ea2bb8db0cff5732de42210" title=" " alt="" coords="1285,392,1419,419"/>
<area shape="rect"  href="hashcat_8c.html#a9f3f1b757bdc2a874b4bb0dc657bde1d" title=" " alt="" coords="1280,5,1424,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,31,56,57"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,56,277,83"/>
<area shape="rect"  href="hashes_8c.html#a941bbcf804b81ac407d485859bf87999" title=" " alt="" coords="1481,208,1573,235"/>
<area shape="rect"  href="hashes_8c.html#a98055a12599ed1bd53da5c0694605f3d" title=" " alt="" coords="1297,208,1407,235"/>
<area shape="rect"  href="opencl_8c.html#af8bef12676549083a86b2986c456f72d" title=" " alt="" coords="1111,265,1202,292"/>
<area shape="rect"  href="weak__hash_8c.html#a410a6e1cce44e8f0c4cde8ec7d00ecd8" title=" " alt="" coords="456,208,585,235"/>
<area shape="rect"  href="dispatch_8c.html#a274118ca9e580459d6e82f6d61a34d59" title=" " alt="" coords="952,259,1033,285"/>
<area shape="rect"  href="dispatch_8c.html#a0502555fe69aef3e7b8c3886ef18c145" title=" " alt="" coords="969,309,1016,336"/>
<area shape="rect"  href="dispatch_8c.html#a9e518ec031f388304424fb2852075038" title=" " alt="" coords="780,259,904,285"/>
<area shape="rect"  href="hashcat_8c.html#a9ec4f74d423ae0bd4aa6e960632b7086" title=" " alt="" coords="639,259,727,285"/>
<area shape="rect"  href="hashcat_8c.html#ad6cc36d03dcdad3413c794efecb3178a" title=" " alt="" coords="477,259,565,285"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,233,408,260"/>
<area shape="rect"  href="dispatch_8c.html#a45ffdf5a91d67bdc7a27b7fe7d39761a" title=" " alt="" coords="797,309,887,336"/>
<area shape="rect"  href="outfile_8c.html#ab9cb34b09189a2f1b4a6e0e0c3519526" title=" " alt="" coords="1487,107,1567,133"/>
<area shape="rect"  href="opencl_8c.html#a6b485c94e6a1ed68eb8a230b59947aba" title=" " alt="" coords="1299,265,1405,292"/>
<area shape="rect"  href="monitor_8c.html#a6070c1efbb12309f3d3504ccd1f6ca3d" title=" " alt="" coords="1319,316,1385,343"/>
<area shape="rect"  href="monitor_8c.html#ab9ac4a7731cf2a12f37be8fcdaa38a43" title=" " alt="" coords="1103,323,1211,349"/>
<area shape="rect"  href="opencl_8c.html#a25858ed9c49bd2972bb375ec8190c2ba" title=" " alt="" coords="1081,399,1232,425"/>
</map>
</div>

</div>
</div>
<a id="a028cad722524f6f02863b3c309a28bd4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a028cad722524f6f02863b3c309a28bd4">&#9670;&nbsp;</a></span>unlock_file()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void unlock_file </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED FILE *&#160;</td>
          <td class="paramname"><em>fp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="locking_8c_source.html#l00050">50</a> of file <a class="el" href="locking_8c_source.html">locking.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <span class="comment">// we should put windows specific code here</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="loopback_8c_source.html#l00149">loopback_write_append()</a>, and <a class="el" href="potfile_8c_source.html#l00201">potfile_write_append()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="locking_8c_a028cad722524f6f02863b3c309a28bd4_icgraph.gif" border="0" usemap="#locking_8c_a028cad722524f6f02863b3c309a28bd4_icgraph" alt=""/></div>
<map name="locking_8c_a028cad722524f6f02863b3c309a28bd4_icgraph" id="locking_8c_a028cad722524f6f02863b3c309a28bd4_icgraph">
<area shape="rect"  title=" " alt="" coords="1713,81,1796,108"/>
<area shape="rect"  href="loopback_8c.html#a8f463403cbb10298e9a4687df11958f5" title=" " alt="" coords="1508,56,1665,83"/>
<area shape="rect"  href="potfile_8c.html#a769fba1d52f71c0c9a1ba04a46429ac0" title=" " alt="" coords="1517,107,1656,133"/>
<area shape="rect"  href="hashes_8c.html#a941bbcf804b81ac407d485859bf87999" title=" " alt="" coords="1368,81,1460,108"/>
<area shape="rect"  href="hashes_8c.html#a98055a12599ed1bd53da5c0694605f3d" title=" " alt="" coords="1209,81,1320,108"/>
<area shape="rect"  href="opencl_8c.html#af8bef12676549083a86b2986c456f72d" title=" " alt="" coords="1071,56,1161,83"/>
<area shape="rect"  href="weak__hash_8c.html#a410a6e1cce44e8f0c4cde8ec7d00ecd8" title=" " alt="" coords="592,107,721,133"/>
<area shape="rect"  href="dispatch_8c.html#a274118ca9e580459d6e82f6d61a34d59" title=" " alt="" coords="941,5,1023,32"/>
<area shape="rect"  href="dispatch_8c.html#a0502555fe69aef3e7b8c3886ef18c145" title=" " alt="" coords="959,56,1005,83"/>
<area shape="rect"  href="dispatch_8c.html#a9e518ec031f388304424fb2852075038" title=" " alt="" coords="769,5,893,32"/>
<area shape="rect"  href="hashcat_8c.html#a9ec4f74d423ae0bd4aa6e960632b7086" title=" " alt="" coords="613,56,701,83"/>
<area shape="rect"  href="hashcat_8c.html#ad6cc36d03dcdad3413c794efecb3178a" title=" " alt="" coords="456,56,544,83"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,81,408,108"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,81,277,108"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,81,56,108"/>
<area shape="rect"  href="dispatch_8c.html#a45ffdf5a91d67bdc7a27b7fe7d39761a" title=" " alt="" coords="787,56,876,83"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
